fix(crash): debug builds would not try to remove a not found job
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 6 Jun 2025 09:58:39 +0000 (11:58 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 18 Jun 2025 07:52:12 +0000 (07:52 +0000)
commitd5c9806896deef6d365bca5dbfe251ff0b7934ac
tree4c421d794e2039788506beb27f48c1cbbf0547ec
parentb76fff3136484c2199edd5b0252a1551b536385d
fix(crash): debug builds would not try to remove a not found job

in release builds we would happily try to remove an element from QList
with invalid index (-1) if the job is not found

avoid doing this in release builds and keep teh assert in debug builds

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/owncloudpropagator.cpp